package net.hust.bean;

import java.util.HashSet;
import java.util.Set;

/**
 * Song entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Song implements java.io.Serializable {

	// Fields

	private Integer id;
	private String name;
	private String singer;
	private String lyricist;
	private String composer;
	private String lrc;
	private String filepath;
    private String style;
	@SuppressWarnings("unchecked")
	private Set storeItems = new HashSet(0);
	@SuppressWarnings("unchecked")
	private Set loadsongs = new HashSet(0);
	@SuppressWarnings("unchecked")
	private Set playItems = new HashSet(0);
//	@SuppressWarnings("unchecked")
//	private Set comments = new HashSet(0);
	@SuppressWarnings("unchecked")
	private Set recommands = new HashSet(0);

	// Constructors

	/** default constructor */
	public Song() {
	}

	public Song(String name, String singer, String filepath, String style) {
		this.name = name;
		this.singer = singer;
		this.filepath = filepath;
		this.style = style;
	}
	
	public Song(Integer id, String name, String singer, String filepath, String style) {
		this.id = id;
		this.name = name;
		this.singer = singer;
		this.filepath = filepath;
		this.style = style;
	}

	/** full constructor */
	@SuppressWarnings("unchecked")
	public Song(Integer id, String name, String singer,
			String lyricist, String composer, String lrc, String filepath,
			Set storeItems, Set loadsongs, Set playItems, Set recommands) {
		this.id = id;
		this.name = name;
		this.singer = singer;
		this.lyricist = lyricist;
		this.composer = composer;
		this.lrc = lrc;
		this.filepath = filepath;
		this.storeItems = storeItems;
		this.loadsongs = loadsongs;
		this.playItems = playItems;
//		this.comments = comments;
		this.recommands = recommands;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSinger() {
		return this.singer;
	}

	public void setSinger(String singer) {
		this.singer = singer;
	}

	public String getLyricist() {
		return this.lyricist;
	}

	public void setLyricist(String lyricist) {
		this.lyricist = lyricist;
	}

	public String getComposer() {
		return this.composer;
	}

	public void setComposer(String composer) {
		this.composer = composer;
	}

	public String getLrc() {
		return this.lrc;
	}

	public void setLrc(String lrc) {
		this.lrc = lrc;
	}

	public String getFilepath() {
		return this.filepath;
	}

	public void setFilepath(String filepath) {
		this.filepath = filepath;
	}

	public String getStyle() {
		return this.style;
	}

	public void setStyle(String style) {
		this.style = style;
	}

	@SuppressWarnings("unchecked")
	public Set getStoreItems() {
		return this.storeItems;
	}

	@SuppressWarnings("unchecked")
	public void setStoreItems(Set storeItems) {
		this.storeItems = storeItems;
	}

	@SuppressWarnings("unchecked")
	public Set getLoadsongs() {
		return this.loadsongs;
	}

	@SuppressWarnings("unchecked")
	public void setLoadsongs(Set loadsongs) {
		this.loadsongs = loadsongs;
	}

	@SuppressWarnings("unchecked")
	public Set getPlayItems() {
		return this.playItems;
	}

	@SuppressWarnings("unchecked")
	public void setPlayItems(Set playItems) {
		this.playItems = playItems;
	}
	
//	@SuppressWarnings("unchecked")
//	public Set getComments() {
//		return this.comments;
//	}
//
//	@SuppressWarnings("unchecked")
//	public void setComments(Set comments) {
//		this.comments = comments;
//	}

	@SuppressWarnings("unchecked")
	public Set getRecommands() {
		return this.recommands;
	}

	@SuppressWarnings("unchecked")
	public void setRecommands(Set recommands) {
		this.recommands = recommands;
	}

}